<?php

include_once SITE_ROOT.'/jpgraph/jpgraph.php';
include_once SITE_ROOT.'/jpgraph/jpgraph_pie2.php';

$data = array (40, 60, 21, 33, 45, 99, 123, 3, 5, 8, 1);

$graph = new PieGraph(800,500,"auto");
$graph->SetShadow();
$graph->SetAntiAliasing(true);

$graph->title->Set("A simple Pie plot");
$graph->title->SetFont(FF_FONT1,FS_BOLD);

$p1 = new PiePlot2($data);
$p1->ExplodeAll(20);
$p1->SetCenter(0.45);
$p1->SetSize(0.3);
$p1->SetSliceColors(array('#AEE20B@0.3', '#0DDA3B@0.3', '#0D92DA@0.3', '#0D4CDA@0.3', '#340DDA@0.3', '#9B0DDA@0.3', '#DA0D75@0.3', '#FF220C@0.3', '#FF730C@0.3', '#FFA80C@0.3', '#FFD90C@0.3', '#F5FF0C@0.3'), array('#AEE20B@0.3', '#0DDA3B@0.3', '#0D92DA@0.3', '#0D4CDA@0.3', '#340DDA@0.3', '#9B0DDA@0.3', '#DA0D75@0.3', '#FF220C@0.3', '#FF730C@0.3', '#FFA80C@0.3', '#FFD90C@0.3', '#F5FF0C@0.3'));
$p1->SetLegends($gDateLocale->GetShortMonth());
$p1->ShowBorder(true);
$p1->SetShadow('#000000@0.8', 4);

$graph->Add($p1);
$graph->Stroke();


?>